a = False
user = {"root":"123456","admin":"admin"}#用字典创建两个用户名和密码
while not a:
    user1 = input("请输入账号：")
    pawd1 = input("请输入密码：")
    user2 = input("请在确认账号")
    pawd2 = input("请在确认密码")
    if user1 != user2 or pawd1 != pawd2:
        print("用户名密码不匹配")#如果输入不同，则打印消息
        continue
    if not user1 in user:#检查用户是否不存在
        print("请在此输入用户")
        continue
    if pawd1 == user[user1]:#检查密码是不是匹配
        print("验证成功，欢迎",user1)
        compilete = True
    else:
        print("请在次输入密码")


